package cn.com.pagoda.ideplugin;

import cn.com.pagoda.ideplugin.ui.PagodaFrame;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import org.jetbrains.annotations.NotNull;

/**
 * 启动工具箱主窗口
 *
 * @author tianmingxing <mx.tian@qq.com> on 2023/03/25
 */
public class MainAction extends AnAction {

    private PagodaFrame frame;

    @Override
    public void actionPerformed(@NotNull AnActionEvent e) {
        if (null == frame) {
            frame = new PagodaFrame(e);
        }
        frame.setVisible(true);
    }

}
